home *** CD-ROM | disk | FTP | other *** search
- Path: ccshst05.cs.uoguelph.ca!ccshst01!jsadler
- From: jsadler@uoguelph.ca (J. Sadler)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Random #s
- Date: 18 Mar 1996 03:09:21 GMT
- Organization: University of Guelph
- Message-ID: <4iik51$61r@ccshst05.cs.uoguelph.ca>
- References: <4ihkif$ed0@apollo.isisnet.com>
- NNTP-Posting-Host: ccshst01.cs.uoguelph.ca
- X-Newsreader: TIN [version 1.2 PL2]
-
- : Hi all, newbie here :).. I'm just messing around with a PD C compiler
- : and wanted to know - where can I find a function that gives me a random
- : number? (And a newsgroup/mailing list for C newbies such as myself ;) )
-
- acording to my ansi based c:
-
- <stdlib.h>
-
- func pro:
-
- int rand(void);
-
- also might want:
-
- void srand(unsigned int seed);
-
- there's psuedorandom 4 u
- jeff sadler
-
- - to make realy random access the time in seconds for your seed.
-
- Total link Death in 17 days
-